import requests

headers = {
    'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1'}

url = 'https://www.baidu.com/s'
kw = {'wd': 'gucci'}
r = requests.get(url, headers=headers, params=kw)
print('请求的URL', r.url)
print('响应内容', r.content)
